//
//  FPCinemaTableViewCell.m
//  FilmParadise
//
//  Created by lanou3g on 15/7/14.
//  Copyright (c) 2015年 DLYgroup. All rights reserved.
//

#import "FPCinemaTableViewCell.h"

@implementation FPCinema_TableViewCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self B_tableViewCell];
    }
    return self;
}

- (void)B_tableViewCell
{
    // 创建电影名
    self.cinemaNameLabel = [UILabel labelWithFrame:CGRectMake(kImageH(15), kImageH(15), kImageH(200), kImageH(20)) text:@"上海米格国际影城" fontSize:18.0 fontWeight:2.0 color:[UIColor blackColor]];
    [self.contentView addSubview:_cinemaNameLabel];
    
    // 创建电影院地址
    self.addressLabel = [UILabel labelWithFrame:CGRectMake(kImageH(15), kImageH(40), kImageH(300), kImageH(20)) text:@"上海市青浦区嘉松中路599弄51号5.9km" fontSize:15.0 fontWeight:1.0 color:[UIColor lightGrayColor]];
    [self.contentView addSubview:_addressLabel];
    
    // 创建价格标签
    self.moneyLabel = [UILabel labelWithFrame:CGRectMake(kImageH(kScreenWidth - 70), kImageH(15), kImageH(10), kImageH(30)) text:@"$" fontSize:12.0 fontWeight:1.0 color:[UIColor orangeColor]];
    [self.contentView addSubview:_moneyLabel];
    
    // 填写价码
    self.priceLabel = [UILabel labelWithFrame:CGRectMake(kImageH(kScreenWidth - 60), kImageH(15), kImageH(30), kImageH(30)) text:@"42" fontSize:23.0 fontWeight:2.0 color:[UIColor orangeColor]];
    [self.contentView addSubview:_priceLabel];
    
    // 创建价码后的提示标签
    self.upLabel = [UILabel labelWithFrame:CGRectMake(kImageH(kScreenWidth - 30), kImageH(15), kImageH(15), kImageH(30)) text:@"起" fontSize:16.0 fontWeight:1.0 color:[UIColor orangeColor]];
    [self.contentView addSubview:_upLabel];
    
    // 创建自动售票机图标
    self.ATSImageView = [[UIImageView alloc] initWithFrame:CGRectMake(kImageH(15), kImageH(65), kImageH(15), kImageH(15))];
    self.ATSImageView.image = [UIImage imageNamed:@"credit-card-vector"];
    [self.contentView addSubview:_ATSImageView];
    
    // 创建3D图标
    self.thirdDImageView = [[UIImageView alloc] initWithFrame:CGRectMake(kImageH(32), kImageH(65), kImageH(15), kImageH(15))];
    self.thirdDImageView.image = [UIImage imageNamed:@"document-vector"];
    [self.contentView addSubview:_thirdDImageView];
    
    // 创建停车场图标
    self.parkImageView = [[UIImageView alloc] initWithFrame:CGRectMake(kImageH(49), kImageH(65), kImageH(15), kImageH(15))];
    self.parkImageView.image = [UIImage imageNamed:@"contacts-vector"];
    [self.contentView addSubview:_parkImageView];
    
    // 创建wifi图标
    self.wifiImageView = [[UIImageView alloc] initWithFrame:CGRectMake(kImageH(66), kImageH(65), kImageH(15), kImageH(15))];
    self.wifiImageView.image = [UIImage imageNamed:@"copy-vector"];
    [self.contentView addSubview:_wifiImageView];
    
    // 创建vip图标
    self.vipImageView = [[UIImageView alloc] initWithFrame:CGRectMake(kImageH(84), kImageH(65), kImageH(15), kImageH(15))];
    self.vipImageView.image = [UIImage imageNamed:@"down-vector"];
    [self.contentView addSubview:_vipImageView];
    
    // 创建进入下个界面的图标
    self.nextImageView = [[UIImageView alloc] initWithFrame:CGRectMake(kImageH(kScreenWidth - 45), kImageH(40), kImageH(15), kImageH(15))];
    [self.contentView addSubview:_nextImageView];
}

/* 本界面所有图片
 UILabel *filmNameLabel;
 UILabel *addressLabel;
 UILabel *priceLabel;
 UILabel *moneyLabel;
 UILabel *upLabel;
 UIImageView *ATSImageView;
 UIImageView *thirdDImageView;
 UIImageView *parkImageView;
 UIImageView *wifiImageView;
 */

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
